package com.example.base.log;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;

public class DatabaseAppender extends AppenderBase<ILoggingEvent> {

    @Override
    protected void append(ILoggingEvent event) {
        String loggerName = event.getLoggerName();
        String logMessage = event.getFormattedMessage();
        LogUtils.wirteLog(loggerName,logMessage);
    }
}
